package org.nfIt.th04;

import jdk.swing.interop.SwingInterOpUtils;

/**
 * ClossName:MainTest
 * Pakage:org.nfIt.th04
 * Description
 *
 * @Author L
 * @Create 2024/5/19 11:43
 * @Version 2023.1.3
 */
public class MainTest {
    public static void main(String[] args) {
        Handler handler = new MethoedHandler();
        //object类型需要转换
        String handle = (String) handler.handle();
        System.out.println(handle);
        System.out.println("---------------------------");
        MethoedHandler mh = new MethoedHandler();
        String handle2 = mh.handle();
        System.out.println(handle2);
        System.out.println("---------------------------");
        FileHandler<String, Integer> f = new FileHandler<>("age",18);
        String handle1 = f.handle();
        System.out.println(handle1);
        Integer value = f.getValue();
        String key = f.getKey();
        System.out.println(key +" "+ value);
        System.out.println("---------------------------");


    }
}
